<?php

$opts['tb'] = $PACTS_cfg->metadatatablename;

// Name of field which is the unique key
$opts['key'] = 'TableName';

// Type of key field (int/real/string/date etc.)
$opts['key_type'] = 'string';

// Sorting field(s)
$opts['sort_field'] = array('TableName');

// Number of records to display on the screen
// Value of -1 lists all records in a table
$opts['inc'] = 50;

$opts['fdd']['TableName'] = array(
  'name'     => 'TableName',
  'select'   => 'T',
  'maxlen'   => 50,
  'default'  => 'PRI',
  'required' => true,
  'sort'     => true
);
$opts['fdd']['ColumnName'] = array(
  'name'     => 'ColumnName',
  'select'   => 'T',
  'maxlen'   => 50,
  'default'  => 'PRI',
  'required' => true,
  'sort'     => true
);
$opts['fdd']['Description'] = array(
  'name'     => 'Description',
  'select'   => 'T',
  'maxlen'   => 65535,
  'textarea' => array(
    'rows' => 5,
    'cols' => 50),
  'required' => true,
  'sort'     => true
);
$opts['fdd']['DisplayInd'] = array(
  'name'     => 'DisplayInd',
  'select'   => 'T',
  'maxlen'   => 1,
  'values'   => array('Y','N'),
  'required' => true,
  'sort'     => true
);

// Now important call to phpMyEdit

new phpMyEdit($opts);

?>

